<div style="float:right;"><?= $this->href( "role", "resourceList", "Editar recursos" ) ?></div>
<p>El siguiente listado muestra los roles elija uno para editar los detalles de ese rol.</p>


<? if (count($this->paginator)): ?>
<table class="listclass" width="100%" border="0" cellpadding="0" cellspacing="0">
    <thead>
      <tr>
            <th width="10%" align="left">ID</th>
            <th width="10%" align="left">Role</th>
            <th width="10%" align="left">ID Role padre</th>
            <th colspan= 2 width="20%" align="left">Accion</th>
      </tr>
    </thead>

    <tbody>
        <? $i=0; foreach ($this->paginator as $role) : ?>
              <tr class=<?= ($i%2==0?'"even clickable"':'"odd clickable"') ?> 
                onclick="document.location='<?php echo $this->url( array( 'controller'=>'role','action'=>'aclList', 'roleId'=> $role->role_id ), "default" )?>'">
                    <td valign="top"><?= $role->role_id; ?></td>
                    <td valign="top"><?= $role->name ?></td>
                    <td valign="top"><?= $role->parent_role_id ?></td>
                    <td valign="top">
                        <?= $this->href( "role", "aclList", "Editar Permisos", array( "roleId" => $role->role_id ) ) ?>
                    </td>
              </tr>
        <? $i++; endforeach; ?>
    </tbody>
</table>
<?= $this->paginator ?>
<? endif; ?>
<p>
<?= $this->href( "role", "edit", "Crear un nuevo rol" ) ?>
</p>
<p>
<?= $this->href( "user", "list", "Volver" ) ?>
</p>

